<?php
/**
 * Created by PhpStorm.
 * User: xiao
 * Date: 2018/4/12
 * Time: 18:52
 */

namespace App\Http\Service\Api;


use App\Http\Model\Api\Banner;
use App\Http\Model\Api\Nav;
use App\Http\Utils\JUtil;

class ApiHomeService
{
    public static function getList()
    {
        $banner = new Banner();             // 获取首页banner的数据
        $nav    = new Nav();                // 获取首页导航栏的数据

        $bannerData = $banner->getList();
        $navData = $nav->getList();
        return JUtil::S('', array('banner' => $bannerData, 'nav' => $navData));
    }
}